<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     <title>我的订单</title>
</head>
<body>
<h3>用户名：${Constants.CURRENT_USER.user_name}</h3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<h4>上次登录时间：${um.near_time}</h4>
<table border="1" align="center">
     <tr align="center">
          <td>订单编号</td>
          <td>下单时间</td>
          <td>用户ID</td>
          <td>总金额</td>
          <td>订单状态</td>
          <td>来源</td>
          <td>收货人电话</td>
          <td>收货人姓名</td>
          <td>收货人地址</td>
          <td>操作</td>
     </tr>
     <c:forEach var="goods" items="${goodsList}">
          <tr>
               <td>${goods.goods_no}</td>
               <td>
                    <fmt:formatDate value="${goods.sell_time}" pattern="yyyy-MM-dd HH:mm" />
               </td>
               <td>${goods.goods_uid}</td>
               <td>
                    <fmt:formatNumber value="${goods.amount}" pattern="0.00" />
               </td>
               <td>
                         ${goods.status.text}
               </td>
               <td>${goods.sources.text}</td>
               <td>${goods.customer_tel}</td>
               <td>${goods.customer_name}</td>
               <td>${goods.address}</td>
               <td>
                    <c:if test="${goods.status=='NO_PAYMENT'}">
                         <button>支付</button>
                         <button>取消</button>
                    </c:if>
               </td>
          </tr>
     </c:forEach>
</table>
</body>
</html>